
package za.ac.cput.peterjohn.DesignPatternPrincipals.creational.AbstractFactoryPattern.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.AbstractFactoryPattern.Model.Snake;
import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.AbstractFactoryPattern.Model.Tyrannosaurus;
import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.FactoryMethodPattern.Model.Animal;



public class ReptileFactory extends SpeciesFactory {

    public ReptileFactory() {}

    @Override
    public Animal getAnimal(String type) 
    {
        if("snake".equals(type))
            return new Snake();
        else
            return new Tyrannosaurus();
    }  
}